<?php
/**
 * Contents Controller
 */
namespace PUF;

class ContentsController extends Controller {
	
	protected $models = 'Content';
	
	public function home() {
		$this->View->setTitle('Fergie Argentina');
		$this->View->setLayout('home');
		
		$contents = Content::query('select * from contents order by date desc limit 5;');
		
		/*while ($contents->hasNext()) {
			debug($contents->next());
		}*/
	}
}